﻿using System;

namespace MQTTServer.Models
{
    /// <summary>
    /// 身份证信息推送
    /// </summary>
    public class IDCardPush
    {
        /// <summary>
        ///  身份证信息推送
        /// </summary>
        public string @operator { get; set; }

        /// <summary>
        ///  IDCardPushInfo
        /// </summary>
        public IDCardPushInfo info { get; set; }
    }

    public class IDCardPushInfo
    {
        /// <summary>
        /// 一体机ID，区分每一台机
        /// </summary>
        public string facesluiceId { get; set; }
        /// <summary>
        /// 一体机名称
        /// </summary>
        public string facesluiceName { get; set; }
        /// <summary>
        /// 刷身份证时间年-月-日 时:分:秒
        /// </summary>
        public DateTime time { get; set; }
        /// <summary>
        /// 身份证信息
        /// </summary>
        public IDCardInfo IDCardInfo { get; set; }
    }

    public class IDCardInfo
    {
        /// <summary>
        /// 身份证号码
        /// </summary>
        public string IDCard_Idno { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string IDCard_Name { get; set; }
        /// <summary>
        /// 性别 0: 男 1: 女
        /// </summary>
        public Gender IDCard_Gender { get; set; }
        /// <summary>
        /// 民族
        /// </summary>
        public Nation IDCard_Nation { get; set; }
        /// <summary>
        /// 生日:年-月-日
        /// </summary>
        public DateTime IDCard_Birthday { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string IDCard_Address { get; set; }
        /// <summary>
        /// 发证机关
        /// </summary>
        public string IDCard_Idissue { get; set; }
        /// <summary>
        /// 有效期:年月日-年月日
        /// </summary>
        public string IDCard_Idperiod { get; set; }
        /// <summary>
        /// 身份证照片 base64 编码数据
        /// </summary>
        public string IDCard_photo { get; set; }
    }
}